package com.lyw.gulimall.product.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyw.common.utils.PageUtils;
import com.lyw.gulimall.product.entity.AttrEntity;
import com.lyw.gulimall.product.entity.AttrGroupEntity;
import com.lyw.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.lyw.gulimall.product.vo.AttrRelationGroupVo;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author liyawei
 * @email liyawei@gmail.com
 * @date 2022-05-31 11:06:15
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    IPage<Map<String, Object>> queryPage(Integer page, Integer limit, Long catelogId, String key);

    void deleteRelation(AttrRelationGroupVo[] vos);

    IPage<AttrEntity> getAttrNoRelation(Integer page, Integer limit, Long attrgroupId, String key);

    List<AttrGroupWithAttrsVo> getAttrGroupWithAttrsByCatelogId(Long catelogId);

}

